var t = getApp();

Page({
    data: {
        id: ""
    },
    goskin: function() {
        wx.navigateTo({
            url: "/packageE/others/skin/skin"
        });
    },
    onLoad: function(n) {
        if (n.scene) {
            var o = decodeURIComponent(n.scene);
            if (o) {
                var e = [];
                e = o.split(",");
                for (var a = 0; a < e.length; a++) {
                    var i;
                    "mid" == (i = e[a].split("="))[0] && t._setMid(i[1]), "report_id" == i[0] && this.setData({
                        id: i[1]
                    });
                }
            }
        } else n.id && this.setData({
            id: n.id
        });
        this.getdata();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var n = this, o = t.getNetAddresss("plugin.skin-check.api.skin-check.share-data");
        t._getNetWork({
            url: o,
            data: {
                report_id: n.data.id
            },
            success: function(t) {
                var o = t.data;
                console.log(o), 1 == o.result ? n.setData({
                    info: o.data
                }) : wx.showToast({
                    icon: "none",
                    title: o.msg,
                    duration: 1500
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});